<template>
  <a-button type="primary">
    <template #icon><PlusOutlined /></template>
    <slot>
      {{ t("component.button.addText") }}
    </slot>
  </a-button>
</template>
<script lang='ts'>
import { defineComponent } from "vue";
import { PlusOutlined } from "@ant-design/icons-vue";
import { useI18n } from "vue-i18n";
export default defineComponent({
  name: "AddButton",
  components: {
    PlusOutlined,
  },
  setup() {
    const { t } = useI18n();
    return {
      t,
    };
  },
});
</script>